package com.erp.gather.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 商品HS编码对照业务对象 erp_collect_product_hs
 *
 * @author erp
 * @date 2023-04-06
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpCollectProductHsBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * HS编码
     */
    @NotBlank(message = "HS编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String hsCode;

    /**
     * CIQ代码
     */
    @NotBlank(message = "CIQ代码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ciqCode;

    /**
     * CIQ名称
     */
    @NotBlank(message = "CIQ名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ciqName;

    /**
     * 乐观锁
     */
    @NotBlank(message = "乐观锁不能为空", groups = { AddGroup.class, EditGroup.class })
    private String revision;


}
